<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        li {
            list-style: none;
        }

        html,
        body {
            height: 100%;
        }

        body {
            display: flex;
            flex-direction: column;
        }

        header {
            width: 100%;

        }

        main {
            flex: 1;
            overflow: scroll;
        }

        footer {
            width: 100%;
        }

        /* 头部样式 */
        header .box {
            display: flex;
        }

        header .box .box1 {
            flex: 2;
        }

        header .box ul {
            display: flex;
            /* justify-content: center; */
            flex: 2;
            align-items: center;
        }

        header .box ul li {
            width: 50px;
            height: 34px;
            text-align: center;
            line-height: 34px;
            margin-left: 10px;
        }

        header .box .box2 {
            flex: 1;
            text-align: right;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        header .box .box2 .box-2 {
            width: 70px;
            height: 30px;
            line-height: 34px;
            text-align: center;
            border-radius: 40%;
            border: 3px solid #D1D1D1;
            color: black;
            font-size: 15px;
        }

        header .box .box2 .box-3 {
            margin-left: 10px;
            width: 100px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            border-radius: 40%;
            border: 3px solid #ED510A;
            color: white;
            background-color: #ED510A;
            font-size: 15px;
        }

        a {
            text-decoration: none;
        }
    </style>
</head>

<body>
    <header>
        <div class="box">
            <div class="box1">
                <img src=" ./src/asset/images/api-new-logo-white.png" alt="">
            </div>
            <ul>
                <li>首页</li>
                <li style="color: aqua;border-bottom: 1px solid aqua;">API</li>
                <li>云服务</li>
                <li>案例</li>
                <li>开发者</li>
            </ul>
            <div class="box2">
                <a href="#" class="box-2">登录</a>
                <a href="#" class="box-3">注册有礼</a>
            </div>
        </div>
    </header>



    <main>

    </main>
    <footer>

    </footer>
</body>

</html>